﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="YearHolidayBatch.aspx.cs" Inherits="WorkTime_YearHolidayBatch" %>

<%@ Register Assembly="ZLTextBox" Namespace="BaseText" TagPrefix="cc1" %>
<%@ Register Src="../Control/DepartmentDList.ascx" TagName="DepartmentDList" TagPrefix="uc1" %>
<%@ Register Src="../Control/DSelYearMonth.ascx" TagName="DSelYearMonth" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Titile" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <infolight:webdatasource id="wsYearHoliday" runat="server" selectalias="" selectcommand=""
        cachedataset="True">
    </infolight:webdatasource>
    <infolight:webdatasource id="wsContract" runat="server" cachedataset="True">
    </infolight:webdatasource>
    <table cellpadding="0" cellspacing="5" class="TbSearch">
        <tr>
            <td style="" align="right" valign="middle" width="50">
                年份:
            </td>
            <td align="left" style="width: 80px" valign="middle">
                <uc2:DSelYearMonth ID="DLYearMonth" runat="server" />
            </td>
            <td style="" align="right">
                类型:
            </td>
            <td align="left" style="width: 120px">
                <asp:DropDownList ID="ContactTime" runat="server">
                    <asp:ListItem Selected="True">满整年添年假</asp:ListItem>
                    <asp:ListItem>年度作废年假</asp:ListItem>
                    <asp:ListItem>年假统扣</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td style="" align="right" valign="middle">
                部门:
            </td>
            <td style="">
                <uc1:DepartmentDList ID="dptlist" runat="server" />
            </td>
            <td align="center" style="text-align: left">
                <span class="roundbtn">
                    <asp:LinkButton ID="Refresh" runat="server" Text="&nbsp;&nbsp;&nbsp;&nbsp;查 阅&nbsp;&nbsp;&nbsp;&nbsp;"
                        OnClick="Button1_Click"></asp:LinkButton>
                </span>
            </td>
            <td style="text-align: left; width: 100px;">
                <span class="roundbtn" runat="server" id="BatchSave">
                    <asp:LinkButton ID="BatchSavebtn" runat="server" Text=" 年假数据保存 " OnClick="BatchSave_Click"
                        OnClientClick="javascript:return confirm('确定要操作吗?');"></asp:LinkButton>
                </span><span class="roundbtn" runat="server" id="BatchDel">
                    <asp:LinkButton ID="BatchDelbtn" runat="server" Text=" 作废年假数据 " OnClick="BatchDel_Click"
                        OnClientClick="javascript:return confirm('整年度将被作废\r确定要操作吗？');"></asp:LinkButton>
                </span><span class="roundbtn" runat="server" id="BatchDelSpecifiedDays">
                    <asp:LinkButton ID="BatchDelSpecifiedDaysbtn" runat="server" Text=" 批量年假扣除 " OnClick="BatchDelSpecifiedDays_Click"
                        OnClientClick="javascript:return confirm('将统一扣除年假\r确定要操作吗？?');"></asp:LinkButton>
                </span>
            </td>
        </tr>
        <tr runat="server" id="BatchDelSpecifiedArgs">
            <td colspan="8">
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td align="right" valign="middle" width="65">
                            天数:
                        </td>
                        <td valign="middle">
                            <asp:TextBox ID="txtDayCount" runat="server" ToolTip="只接受负数，正数将被转换为负数。">-10</asp:TextBox>
                        </td>
                        <td valign="middle">
                            <font color="red" style="margin-right: 20px;">(修改后点击[查阅]刷新数据)</font>
                        </td>
                        <td align="middle" valign="middle" width="50">
                            <asp:Label ID="Label2" runat="server" Text="备注:" Width="30px"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox Width="300" ID="txtRemark" runat="server" Text="批量扣除年假" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <div class="tabsI" runat="server" id="Record">
    </div>
    <asp:GridView ID="wgvMaster" runat="server" Width="100%" AutoGenerateColumns="False"
        CellPadding="5">
        <RowStyle BackColor="#EFF3FB" />
        <PagerSettings Mode="NumericFirstLast" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <Columns>
            <%--<asp:TemplateField HeaderText="合同起始" SortExpression="Contractbegin">
                <ItemTemplate>
                    <asp:Label runat="server" Text='<%# Eval("Contractbegin", "{0:yyyy-MM-dd}") %>' ID="Label1"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="合同终止" SortExpression="Contractend">
                <ItemTemplate>
                    <asp:Label runat="server" Text='<%# Eval("Contractend", "{0:yyyy-MM-dd}") %>' ID="Label2"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="Remark" HeaderText="备注" SortExpression="Remark">
                <ItemStyle Width="200px" />
            </asp:BoundField>--%><asp:BoundField DataField="Eid" HeaderText="工号" SortExpression="EmployeeID">
            </asp:BoundField>
            <asp:BoundField DataField="Ename" HeaderText="姓名" SortExpression="EmpName"></asp:BoundField>
            <asp:BoundField DataField="Dname" HeaderText="部门" SortExpression="DepartmentName" />
            <asp:BoundField DataField="HaveDay" HeaderText="已有天数" SortExpression="EDay" NullDisplayText="0">
                <ItemStyle Width="80px" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="添加天数">
                <ItemTemplate>
                    <cc1:ZLTextBox ID="DoDay" Language="Chinese" runat="server" Width="80px" InputType="formatNumber"
                        textValue="" FloatLength="1" IsDisplayTime="True" ondrop="return regInput(this,/^\d*\.?\d{0,1}$/,event.dataTransfer.getData('Text'))"
                        onfocus="this.style.imeMode='disabled';" onkeypress="return regInput(this,	/^\d*\.?\d{0,1}$/,String.fromCharCode(event.keyCode))"
                        onpaste="return regInput(this,/^\d*\.?\d{0,1}$/,window.clipboardData.getData('Text'))"
                        ShowMessage="" Text='<%# Bind("DoDay") %>'></cc1:ZLTextBox></ItemTemplate>
                <ItemStyle Width="80px" />
            </asp:TemplateField>
            <asp:BoundField HeaderText="工龄(年)" DataField="AccTime" NullDisplayText="0">
                <ItemStyle Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="WorkTimeDate" HeaderText="工龄开始时间">
                <ItemStyle Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="Accession" HeaderText="入职时间">
                <ItemStyle Width="100px" />
            </asp:BoundField>
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <PagerStyle BackColor="LightBlue" ForeColor="White" HorizontalAlign="Center" />
        <HeaderStyle BackColor="DeepSkyBlue" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" BorderColor="White" />
    </asp:GridView>
</asp:Content>
